FROM harbor.xhaihua.cn/library/alpine-php-7.2.14 

LABEL MAINTAINER="xhaihua 851628816@qq.com"

ENV DEP_PKGS="php7-phar openjdk8-jre bash sudo git openssh-client"

COPY scripts/   / 
COPY  file/     /

RUN  apk update                      && \
     apk upgrade                     && \
     apk add $DEP_PKGS               && \
     addgroup -g 1000 jenkins        			&& \
     adduser  -u 1000 -G jenkins -D jenkins 		&& \
     mkdir -p /opt/app/jenkins/home       		&& \
     chown -R jenkins:jenkins /opt/app/jenkins/home     && \
     curl -o /bin/composer https://getcomposer.org/download/1.8.4/composer.phar && \ 
     chmod 755 /run.sh  /bin/composer
     
ENTRYPOINT ["/run.sh"]




